<?php
defined('_JEXEC') or die();

jimport('joomla.application.component.controller');
require_once JPATH_COMPONENT.DS.'helpers'.DS.'extensionsHelper.php';

class Easiv2adminControllerManageExtensions extends JController {
	
	var $extensionHelper;
	
	function install() {
		$this->extensionHelper = new ExtensionsHelper('repository');

		$selectedItems = $_POST['selected'];
				
		$this->extensionHelper->setSelectedPackages($selectedItems);
		
		$this->extensionHelper->install();
	}
	
function uninstall() {
		$this->extensionHelper = new ExtensionsHelper('repository');

		$selectedItems = $_POST['selected'];
				
		$this->extensionHelper->setSelectedPackages($selectedItems);
		
		$this->extensionHelper->uninstall();
	}
}